#ifndef __GOZMQ_H_INCLUDED__
#define __GOZMQ_H_INCLUDED__

#include <zmq.h>
#include <stdlib.h>
#include <string.h>

#if (ZMQ_VERSION_MAJOR == 2)
	#define zmq_send_msg zmq_send
	#define zmq_recv_msg zmq_recv
	#define ZMQ_DONTWAIT ZMQ_NOBLOCK
	#define ZMQ_SNDLABEL 4
#endif

int zmq_msg_init_data_helper(zmq_msg_t *msg, void *data,
    size_t size)
{
	return zmq_msg_init_data(msg,data,size,0,0);
}


#endif //__GOZMQ_H_INCLUDED__